﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using stockfund.src;
namespace stockfund.popform
{
    public partial class frmContent : Form
    {
        public frmContent()
        {
            InitializeComponent();

        }
        private helpContext hct = new helpContext();
        private void frmContent_Load(object sender, EventArgs e)
        {
            this.listBox1.Items.AddRange(src.helpContext.items);
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = ((sender as ListBox).SelectedIndex);
            string value = (string)(sender as ListBox).SelectedItem;

            this.rtb_content.Text = index + ":" + value;
        }
    }
}
